import 'package:palmf_hid/generated/assets.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';

import 'splash_logic.dart';

class SplashComponent extends GetView<SplashLogic> {
  const SplashComponent({
    Key? key,
  }) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      width: 1.sw,
      height: 1.sh,
      color: Colors.black,
      child: Center(
          child: Container(
        alignment: Alignment.center,
        width: 1.sw,
        height: 1.sh,
        child: FadeTransition(
          opacity: CurvedAnimation(
              parent: controller.animationController, curve: Curves.linear),
          child: Image.asset(
            Assets.imagesLogoWhiteBg,
            fit: BoxFit.fill,
          ),
        ),
      )),
    );
  }
}
